package service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import entity.MedicineEntity;

public interface MedicineService {

    MedicineEntity getMedicineById(Integer id);

    IPage<MedicineEntity> getAllMedicines(IPage<MedicineEntity> page);

    IPage<MedicineEntity> searchMedicinesFuzzy(String keyword, IPage<MedicineEntity> page);

    boolean addMedicine(MedicineEntity medicine);

    boolean deleteMedicine(Integer id);

    boolean updateMedicine(MedicineEntity medicine);
}